var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_ComBannerView = /* */function (_cc$Component5) {
  function _ctor() {
    var _this11;
    babel_classCallCheck(this, _ctor);
    _this11 = _callSuper(this, _ctor, arguments);
    _this11.reset = false;
    _this11.lastWidth = 0;
    return _this11;
  }
  babel_inherits(_ctor, _cc$Component5);
  return babel_createClass(_ctor, [{
    key: "refresh",
    value: function refresh() {
      if (this.node.width != this.lastWidth) {
        this.lastWidth = this.node.width;
        this.node.height = this.node.width / 2.88461538461538;
      }
      return false;
    }
  }]);
}(cc.Component);
cc__decorate([ccp_property({
  tooltip: "刷新所有坐标和连线",
  displayName: "刷新",
  visible() {
    return this.refresh();
  }
})], def_ComBannerView.prototype, "reset", undefined);
def_ComBannerView = cc__decorate([ccp_ccclass], def_ComBannerView);
exports.default = def_ComBannerView;